package org.dromara.tearoom.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 账户对象 ter_accounts
 *
 * @author xch
 * @date 2025-05-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("ter_accounts")
public class TerAccounts extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 余额
     */
    private Integer balance;

    /**
     * 积分
     */
    private Integer integral;

    /**
     * 版本号
     */
    @Version
    private Integer version;

    /**
     * 是否可用
     */
    private Integer type;

    private Integer giftAmount;
}
